><

Creating links to dynamic pages



Adobe GoLive Dynamic Link makes the process of creating links to dynamic pages easy.

Note: Links to dynamic pages will not work properly when you preview the page within Adobe GoLive, use the Show in Browser feature, or simply open the page locally as a file in a browser. In order to test the functionality of dynamic page links, the page must be served up live on your Web server, and viewed in a browser by typing in its Web address, using the form http://webserver/site/page.asp.

To create a link to a dynamic page:

1 Select the text or graphic to be used as the link origin.

2 Click the New Link button in the toolbar and enter a link destination in the Inspector; or use the Browse button or the Point and Shoot button to choose a dynamic page (.asp) within your site.

3 Click the Binding Details tab in the Dynamic Link palette.

4 Select the Link Action option.

5 Choose an option from the Link Action pop-up menu:

  • Show Details of Current Record.
  • Show Previous Record.
  • Show Next Record.
  • Show First Record.
  • Show Last Record.
  • Show Empty Record.

  • 6 Select a content source from the Content Source pop-up menu.

    If you need more control over the value passed along with the link to the dynamic page, you can specify custom dynamic URL arguments by choosing Add Arguments to URL from the Link Action pop-up menu. You must also prepare the target page in addition to creating a link.

    To prepare the target page for dynamic URL arguments:

    1 Open the target dynamic page, highlight the content source in the Dynamic Link palette, and click Edit.

    The Edit Content Source window lists all available fields in the Filter Records area.

    2 Select the field name you want to serve as a matching filter to parameters submitted with links from other pages.

    3 Select a Match Pattern filter from the pop-up menu next to the field name or enter valid parameters manually.


    Selecting a Match Pattern filter.

    Query filter
    Example
    pop-up menu choice
    "Match URL ID parameter"
    The pop-up menu lets you choose from a variety of filters, including a parameter appended to the end of the requested URL, form field, cookie, session variable, or application variable for the current field.
    text string

    "='bowwow'"

    number string

    "=123"

    script function

    "='{bowwow()}'"

    For example, if you're building a fashion site and want to show apparel for the current season you might write,

    SEASON = '{CurrentSeason()}'

    Where CurrentSeason() is a function you've written that calculates the season from the date.

    4 Click OK to apply your selections.

    To create a link with dynamic URL arguments:

    1 Open the page on which you want to create the link to the prepared dynamic page.

    2 Select the text or graphic to be used as the link origin.

    3 Click the New Link button () in the toolbar and enter a link destination in the Inspector; or use the Browse button or the Point and Shoot button to choose a dynamic page within your site.

    4 Click the Binding Details tab in the Dynamic Link button.

    5 Select the Link Action option.

    6 Choose Add Arguments to URL from the from the Link Action pop-up menu.

    The Dynamic URL Arguments box displays all the parameters available for the target page. Enter the values needed for these parameters using the notation source:field to pass dynamic arguments along with the URL. For example, if the content source is Feature_Information and the parameter is ID, you would enter Feature_Information:ID.

    Here's a handy way to edit and preview pages with dynamic links at the same time--at least if you're editing the live pages on your Web server. Just keep a browser window open that points to the page you're editing (using the page's Web address). When you want to preview the links, move to your browser window and click the Refresh button.


    Using Dynamic Link > Adding dynamic content to pages > Creating links to dynamic pages